package com.xiexiaozhou.chapter421.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/hello")
public class HelloController {

    @RequestMapping(value = "/say")
    public String say(@RequestParam String name) {
        System.out.println("HelloController say: Hello," + name);
        return "Hello," + name;
    }
}
